﻿using DirectSell.Model.User;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DirectSell.IBLL
{
    /// <summary>
    /// 用户操作入口
    /// </summary>
    public interface IOperation
    {
        #region 用户操作入口
        /// <summary>
        /// 用户操作入口
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="param"></param>
        /// <returns></returns>
        UserRespCode DoOperation<T>(T param);
        /// <summary>
        /// 用户操作入口 异步
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="param"></param>
        /// <returns></returns>
        Task<UserRespCode> DoOperationAsync<T>(T param);
        #endregion
    }
}
